package com.xunua.networkproject.RxJavaAndButterKnife;



import com.xunua.networkproject.RetrofitBean.PostFileResultBean;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;

/**
 * @user XUNUA
 * @email xunua@outlook.com
 * @creat time 2020/5/8 18:27
 */
public interface RxJavaService {
    @GET("/get/text")       //get请求
    Observable<RxJavaResultBean> getText();
    @POST("/login")     //post 表单请求
    @FormUrlEncoded
    Observable<PostFileResultBean> postLogin(@Field("userName")String name, @Field("password")String pwd);
}
